﻿#region NeoPatterns
// 
// NeoPatterns framework is released under LGPLv3 license.
// See http://www.opensource.org/licenses/lgpl-3.0.html for more details.
// 
// Please visit http://neopatterns.wikidot.com for more information about NeoPatterns
// 
// Copyright (c) Pascal Craponne 2008
// 
#endregion

using System;
using System.Runtime.Serialization;

namespace NeoPatterns.Exception
{
    /// <summary>
    /// Thrown when 2 or more objects reference each other in ctors()
    /// </summary>
    [Serializable]
    public class CircularCreationException : RegistryException
    {
        public CircularCreationException()
        {
        }

        public CircularCreationException(string name)
            : base(name)
        {
        }

        public CircularCreationException(string name, System.Exception innerException)
            : base(name, innerException)
        {
        }

        protected CircularCreationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
            : base(serializationInfo, streamingContext)
        {
        }
    }
}